package org.fuxia.im.listeners;

import org.fuxia.im.common.ClientContext;
import org.fuxia.im.core.entries.ECResponse;
import org.fuxia.im.core.listeners.Listener;
import org.fuxia.im.gui.IndividualInfo;


public class UserListener implements Listener{

	public void trigger(Object param) {
		ECResponse resp = (ECResponse)param ;
		if(resp.getStatusCode() == null || resp.getStatusCode() == 400) {
			IndividualInfo frame = (IndividualInfo)ClientContext.getContext().get("individualInfo") ;
			frame.showError(resp.getResponseText()) ;
		}
	}
	
	

}
